﻿function view_ads(id) {
    var id = 'ref_' + id;
    var obj = $("#" + id);
    if (obj.val() != "") {
        openwin(obj.val());
    }
}

function openwin(val) {
    OpenWindow = window.open("", "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=750,height=470,left=80,top=40");
    OpenWindow.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml">');
    OpenWindow.document.writeln("<head><title>广告预览</title></head>")
    OpenWindow.document.writeln("<body>")
    OpenWindow.document.writeln(val);
    OpenWindow.document.writeln("</body>")
    OpenWindow.document.writeln("</html>")
    //OpenWindow.document.close()
} 